<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    function fn(){
      return 100
    }
    async function fn2(){
      const res = await 'abc'
      console.log(res);
    }
    fn2()

  //  await后不一定必须是promise
  //  只要被async修饰过的函数 会被promise包裹
  //  只要在action的函数即使不被async修饰 也会被promise包裹

  async function fn3(){}
  console.log(fn3())
  </script>
</body>
</html>